home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- main()
- {
- int i=0;
- static char array[]="hi there";
-
- printf("%c",array[++i]); /* prints the character 'i' */
- printf("%c",array[i--]); /* prints the character 'i' */
- printf("%c",array[i]); /* prints the character 'h' */
- i=3;
- printf("%c",array[i++]); /* prints the character 't' */
- printf("%c",array[i]); /* prints the character 'h' */
- printf("%c",array[--i]); /* prints the character 't' */
- }
-